package com.fubowen.lepton.db

import androidx.room.Database
import androidx.room.RoomDatabase
import com.fubowen.lepton.db.bean.BookmarkBean
import com.fubowen.lepton.db.bean.Home
import com.fubowen.lepton.db.bean.Password
import com.fubowen.lepton.db.bean.Suggest
import com.fubowen.lepton.db.bean.VisitedBean
import com.fubowen.lepton.db.dao.BookmarkDao
import com.fubowen.lepton.db.dao.HomeDao
import com.fubowen.lepton.db.dao.PasswordDao
import com.fubowen.lepton.db.dao.SuggestDao
import com.fubowen.lepton.db.dao.VisitedDao

@Database(
    entities = [
        BookmarkBean::class,
        VisitedBean::class,
        Suggest::class,
        Password::class,
        Home::class,
    ],
    version = 55,
    exportSchema = false
)
abstract class LeptonDatabase : RoomDatabase() {

    abstract fun bookmarkDao(): BookmarkDao
    abstract fun visitedDao(): VisitedDao
    abstract fun suggestDao(): SuggestDao
    abstract fun passwordDao(): PasswordDao
    abstract fun homeDao(): HomeDao
}